import request from '@/utils/request'

// 查询建筑物单体列表
export function listSingle(query) {
  return request({
    url: '/building/queryBuildingList',
    method: 'get',
    params: query
  })
}

// 查询建筑物单体详细
export function getSingle(id) {
  return request({
    url: '/building/queryData?id=' + id,
    method: 'get'
  })
}

// 新增建筑物单体
export function addSingle(data) {
  return request({
    url: '/system/single',
    method: 'post',
    data: data
  })
}

// 修改建筑物单体
export function updateSingle(data) {
  return request({
    url: '/building/modifyData',
    method: 'post',
    data: data
  })
}

// 删除建筑物单体
export function delSingle(id) {
  return request({
    url: '/building/deleteById?ids=' + id,
    method: 'get',
  })
}

//地图查询全部建筑物单体数据列表
export function mapAllListBuilding() {
  return request({
    url: '/building/queryBuildingMap',
    method: 'get'
  })
}
